package com.zyg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("sys_student")
public class Student {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//序号
    private String studentNum;//学号
    private String studentName;
    private String gender;
    private String age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @TableField(exist = false)
    private Class classes;
    private Integer classId;
    @TableField(exist = false)
    private Grade grade;
    private Integer gradeId;
    @TableField(exist = false)
    private Dorm dorm;
    private Integer dormId;
    @TableField(exist = false)
    private Major major;
    private Integer majorId;
    private String phone;

}
